﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace MiniCrawler
{
    /// <summary>
    /// Author: KienND
    /// Created at: 18/10/2012
    /// File name: Config.cs
    /// </summary>
    public class Config
    {
        /// <summary>
        /// Get value by key
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static string GetValueByKey(string key)
        {
            try
            {
                return ConfigurationSettings.AppSettings[key];          
            }
            catch (Exception ex)
            {
                return "";
            }                
        }       
    }
}
